package com.jhhc.WaterQuality.Calculate.Forecast.service.impl;

import com.jhhc.WaterQuality.Calculate.Forecast.entity.BDMS_CALCULATESCHEME_M;
import com.jhhc.WaterQuality.Calculate.Forecast.dao.BDMS_CALCULATESCHEME_M2Mapper;
import com.jhhc.WaterQuality.Calculate.Forecast.service.BDMS_CALCULATESCHEME_MService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * (BdmsCalculateschemeM)表服务实现类
 *
 * @author makejava
 * @since 2023-06-19 18:03:00
 */
@Service("waterQualityBDMS_CALCULATESCHEME_MServiceImpl")
public class BDMS_CALCULATESCHEME_MServiceImpl implements BDMS_CALCULATESCHEME_MService {

    @Resource
    private BDMS_CALCULATESCHEME_M2Mapper bdms_calculatescheme_m2Mapper;


    @Override
    public BDMS_CALCULATESCHEME_M queryByCalId(String calSchemeId) {
        return bdms_calculatescheme_m2Mapper.queryByCalId(calSchemeId);
    }

    @Override
    public List<BDMS_CALCULATESCHEME_M> selectAllByPid(Integer projectId, String calSchemeId, String startTime, String endTime, boolean isForecastTime) {
        return bdms_calculatescheme_m2Mapper.selectAllByPid(projectId, calSchemeId, startTime, endTime, isForecastTime);
    }

    @Override
    public int insert(BDMS_CALCULATESCHEME_M bdms_calculatescheme_m) {
        return bdms_calculatescheme_m2Mapper.insert(bdms_calculatescheme_m);
    }

    @Override
    public BDMS_CALCULATESCHEME_M seletcById( String calSchemeId) {
        return bdms_calculatescheme_m2Mapper.selectById(calSchemeId);
    }


}
